// JavaScript Document
$(".navButton").mouseover(function(){
	$(".secondMenu").show();
})
$(".secondOption").live('mouseover', function(){
	$(".secondMenu").show();
	var i=$(".secondOption").index($(this));
	$(".secondOption").css({ "background-color":"","color":"#FFF"});
	$(this).css({"background-color":"#fff","color":"#333333"});
	$(".threeMenu").hide();
	$($(".threeMenu")[i]).show();
});

$(".threeMenu").live("mouseover",function(){
	var i=$(".threeMenu").index($(this));
	$($(".threeMenu")[i]).show();
});
$(".threeMenu").live("mouseout",function(){
	var i=$(".threeMenu").index($(this));	
	$($(".threeMenu")[i]).hide();
});
$(window).click(function(){
	$(".secondMenu").hide();
});


$(".mainLeftTitle").live("click",function(){
	
	var i=$(".mainLeftTitle").index($(this));
	$(".subMenu").hide();
	$(".mainLeftTitle img").attr("src","thinkphpkxs/Public/children/images/accept_goods_address/close.png");
	$($(".subMenu")[i]).show();
	$($(".mainLeftTitle img")[i]).attr("src","thinkphpkxs/Public/children/images/accept_goods_address/open.png");
	
	
});
$(".mainLeftTitle").live("mouseover",function(){
	var i=$(".mainLeftTitle").index($(this));
	$(".mainLeftTitle").removeClass("currentColum");
	$($(".mainLeftTitle")[i]).addClass("currentColum")
	
	
});

$("#toTop").click(function(){
    $(window).scrollTop(0);
});

$(".headerResouch input").filter("[type=submit]").mouseover(function(){
	$(this).css("cursor","pointer");
});






